package com.demo.common.core.exception;

/**
 * Created by zh-ma
 * Date 2019/9/16 ${Time}
 */
public enum SystemErrorType implements ErrorType {

    SYSTEM_ERROR("000001", "系统异常"),

    SYSTEM_BUSY("000002", "系统繁忙,请稍候再试"),

    SERVICE_ERROR("000003", "服务异常"),

    PARAM_ERROR("000004", "参数错误");
    /**
     * 错误类型码
     */
    private String code;
    /**
     * 错误类型描述信息
     */
    private String mesg;

    SystemErrorType(String code, String mesg) {
        this.code = code;
        this.mesg = mesg;
    }

    @Override
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String getMesg() {
        return mesg;
    }

    public void setMesg(String mesg) {
        this.mesg = mesg;
    }
}
